# Contributor: Marvin Preuss <marvin@xsteadfastx.org>
# Maintainer: Marvin Preuss <marvin@xsteadfastx.org>
pkgname=libupnpp
pkgver=0.22.0
pkgrel=0
pkgdesc="C++ wrapper for libupnp"
url="https://framagit.org/medoc92/libupnpp"
arch="all"
license="LGPL-2.0-or-later"
options="!check"
makedepends="curl-dev expat-dev libnpupnp-dev"
subpackages="$pkgname-dev"
source="libupnpp-$pkgver.tar.gz::https://www.lesbonscomptes.com/upmpdcli/downloads/libupnpp-$pkgver.tar.gz"

build() {
	./configure --prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
902cb089d54e530a13301b68046401c40202c87d43efe53aef85fbcc4a18c9f5b207358ca5e6d1a41a370d033d47d7910ca6f225850895125e4cce99d5f9f3f4  libupnpp-0.22.0.tar.gz
"
